package com.atguigu.spring6.aop.example;

public class TestCul {
    public static void main(String[] args) {
        // 创建动态代理对象
        ProxyFactory proxyFactory = new ProxyFactory(new ColulatorImpl());
        Calulator colulator = (Calulator) proxyFactory.getProxy();
        colulator.add(1, 2);
        colulator.sub(1, 2);
        colulator.mul(1, 2);
        colulator.div(1, 2);
    }
}
